import time
start = time.time()
f = open('/home/mos-3715301/m1_sorted.txt')
sp = list(map(int, f))
print(sp)
for i in range(len(sp) -1 ):
    for j in range(len(sp) -1 -1):
        if sp[j] <= sp[j + 1]:
            sp[j], sp[j+1] = sp[j+1],sp[j]
print (sp)
end = time.time()
print(end - start )



f2 = open('/home/mos-3715301/m2_reverse.txt')
sp2 = list(map(int, f2))
print(sp2)
for i in range(len(sp2) -1 ):
    for j in range(len(sp2) -1 -1):
        if sp2[j] <= sp2[j + 1]:
            sp2[j], sp2[j+1] = sp2[j+1],sp2[j]
print (sp2)
end2 = time.time()
print(end2 - start )



f3 = open('/home/mos-3715301/m3_shuffle.txt')
sp3 = list(map(int, f3))
print(sp3)
for i in range(len(sp3) -1 ):
    for j in range(len(sp3) -1 -1):
        if sp3[j] <= sp3[j + 1]:
            sp3[j], sp3[j+1] = sp3[j+1],sp3[j]
print (sp3)
end3 = time.time()
print(end3 - start )


